/**
 * Copyright &copy; 2015-2020 <a href="http://www.easyhis.com/">easyhis</a> All rights reserved.
 */
package com.easy.dfcshop.entity;

import com.easy.common.utils.excel.annotation.ExcelField;
import com.easy.core.persistence.DataEntity;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 订单明细Entity
 * @author waylen chi
 * @version 2018-01-17
 */
public class OrderItems extends DataEntity<OrderItems> {
	
	private static final long serialVersionUID = 1L;
	private String id;		// 订单ID
	private Integer orderId;		// 订单ID
	private Integer itemsNo;		// items_no
	private Integer productId;		// 订单商品内部ID
	private Integer colorId;		// Sku之颜色
	private Integer sizeId;		// Sku之尺寸
	private BigDecimal num;		// 数量
	private BigDecimal price;		// 店铺价格
	private BigDecimal amnt;		// 店铺金额
	private BigDecimal realAmnt;		// 实际支付金额
	private String attrs;		// 属性集
	private String shopingType;		// 购买类型
	private String isGift;		// 是否赠品（默认0）
	private String remarks;		// 备注描述
	
	public OrderItems() {
		super();
	}

	public OrderItems(String id){
		this.id = id;
	}

	@NotNull(message="订单ID不能为空")
	@ExcelField(title="订单ID", align=2, sort=0)
	public Integer getOrderId() {
		return orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}
	
	@NotNull(message="items_no不能为空")
	@ExcelField(title="items_no", align=2, sort=1)
	public Integer getItemsNo() {
		return itemsNo;
	}

	public void setItemsNo(Integer itemsNo) {
		this.itemsNo = itemsNo;
	}
	
	@ExcelField(title="订单商品内部ID", align=2, sort=2)
	public Integer getProductId() {
		return productId;
	}

	public void setProductId(Integer productId) {
		this.productId = productId;
	}
	
	@ExcelField(title="Sku之颜色", align=2, sort=3)
	public Integer getColorId() {
		return colorId;
	}

	public void setColorId(Integer colorId) {
		this.colorId = colorId;
	}
	
	@ExcelField(title="Sku之尺寸", align=2, sort=4)
	public Integer getSizeId() {
		return sizeId;
	}

	public void setSizeId(Integer sizeId) {
		this.sizeId = sizeId;
	}
	
	@ExcelField(title="数量", align=2, sort=5)
	public BigDecimal getNum() {
		return num;
	}

	public void setNum(BigDecimal num) {
		this.num = num;
	}
	
	@ExcelField(title="店铺价格", align=2, sort=6)
	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}
	
	@ExcelField(title="店铺金额", align=2, sort=7)
	public BigDecimal getAmnt() {
		return amnt;
	}

	public void setAmnt(BigDecimal amnt) {
		this.amnt = amnt;
	}
	
	@ExcelField(title="实际支付金额", align=2, sort=8)
	public BigDecimal getRealAmnt() {
		return realAmnt;
	}

	public void setRealAmnt(BigDecimal realAmnt) {
		this.realAmnt = realAmnt;
	}
	
	@ExcelField(title="属性集", align=2, sort=9)
	public String getAttrs() {
		return attrs;
	}

	public void setAttrs(String attrs) {
		this.attrs = attrs;
	}
	
	@ExcelField(title="购买类型", align=2, sort=10)
	public String getShopingType() {
		return shopingType;
	}

	public void setShopingType(String shopingType) {
		this.shopingType = shopingType;
	}
	
	@ExcelField(title="是否赠品（默认0）", align=2, sort=11)
	public String getIsGift() {
		return isGift;
	}

	public void setIsGift(String isGift) {
		this.isGift = isGift;
	}
	
	@ExcelField(title="备注描述", align=2, sort=12)
	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	
}